﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using mobliebo;
namespace mobileshopping
{
    public partial class _Default : System.Web.UI.Page
    {
        company_info mobl = new company_info();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DataTable dt = mobl.GetRecords( -99, "", "", "", "", 1800, false, " and ");
                
            }
        }

    

        protected void Button1_Click(object sender, EventArgs e)
        {
            mobl.company_id = -99;
            mobl.company_name = companyname.Text;
            mobl.brand_name = brandname.Text;
            mobl.services = services.Text;
            mobl.category = category.Text;
            mobl.launch_year = Convert.ToInt64(DropDownList1.SelectedItem.Value.ToString());
            mobl.is_deleted = false;
            mobl.SaveRecords();
            Response.Redirect("~/Default.aspx");
        }

        

       


            }
        }
  

